#define _CRT_SECURE_NO_WARNINGS 1
//求十个整数中的最大值
#include<stdio.h>

int main()
{
	int arr[10] = { 0 };
	int max = 0;
	int a;
	for (a = 0; a < 10; a++)
	{
		scanf("%d", &arr[a]);
	}
	max = arr[0];
	for (a = 1; a < 10; a++)
	{
		if (max < arr[a])
		{
			max = arr[a];
		}
	}
	printf("\n");
	printf("%d\n", max);
	return 0;

}